import type { PageModuleTypes } from '../types/index';

/** 公共页面分包 */
const modules: PageModuleTypes[] = [
  {
    path: 'crop',
    name: 'cropImg',
    navigationStyle: 'custom',
    navigationBarTitleText: '图片裁剪',
    navigationBarTextStyle: 'white',
    disableScroll: true,
  },
  {
    path: 'richDetails',
    name: 'richDetails',
    navigationStyle: 'custom',
    navigationBarTitleText: '富文本解析',
    navigationBarTextStyle: 'black',
  },
  {
    path: 'websiteScanCode',
    name: 'websiteScanCode',
    navigationStyle: 'custom',
    navigationBarTitleText: '扫码登录官网',
  },
  {
    path: 'webview',
    name: 'webview',
    navigationStyle: 'default',
    navigationBarTitleText: ''
  },
  {
    path: 'tencentCode',
    name: 'tencentCode',
    navigationStyle: 'custom',
    navigationBarTitleText: '邀请关注',
    backgroundColor: '#fff',
  },
  {
    path: 'specialList',
    name: 'specialList',
    navigationStyle: 'custom',
    navigationBarTitleText: '专题列表',
    backgroundColor: '#fff',
  },
  {
    path: 'typeSelection',
    name: 'typeSelection',
    navigationStyle: 'custom',
    navigationBarTitleText: '分类选择',
    backgroundColor: '#fff'
  },
  {
    path: 'h5RichTextEditor',
    name: 'h5RichTextEditor',
    navigationBarTitleText: '', // h5富文本编辑器
  },
  {
    path: 'searchPage',
    name: 'searchPage',
    navigationStyle: 'custom',
    navigationBarTitleText: '搜索',
    disableScroll: true
  },
  {
    path: 'publicSelectUserList',
    name: 'publicSelectUserList',
    navigationStyle: 'custom',
    navigationBarTitleText: '',
    children: [
      {
        path: 'publicSelectedUserList',
        name: 'publicSelectedUserList',
        navigationStyle: 'custom',
        navigationBarTitleText: '已选列表'
      }
    ]
  },
  {
    path: 'insertMpTutorials',
    name: 'insertMpTutorials',
    navigationStyle: 'custom',
    navigationBarTitleText: '插入公众号'
  },
  {
    path: 'resourceNavigation',
    name: 'resourceNavigation',
    navigationBarTitleText: '资源导航'
  },
  {
    path: 'createFormItem',
    name: 'createFormItem',
    navigationStyle: 'custom',
    navigationBarTitleText: '添加题目',
  },
  {
    path: 'cardActivity',
    name: 'cardActivity',
    navigationStyle: 'custom',
    navigationBarTitleText: '专属卡'
  },
  {
    path: 'cardActivity/agreement',
    name: 'cardActivityAgreement',
    navigationStyle: 'custom',
    navigationBarTitleText: '专属卡协议',
  },
];

export default modules;
